home *** CD-ROM | disk | FTP | other *** search
Wrap
ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) NNNNAAAAMMMMEEEE ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt - set the viewport FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN SUBROUTINE ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt( INTEGER*4 _x, INTEGER*4 _y, INTEGER*4 _w_i_d_t_h, INTEGER*4 _h_e_i_g_h_t ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _x, _y Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). _w_i_d_t_h, _h_e_i_g_h_t Specify the width and height of the viewport. When a GL context is first attached to a window, _w_i_d_t_h and _h_e_i_g_h_t are set to the dimensions of that window. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt specifies the affine transformation of x and y from normalized device coordinates to window coordinates. Let (x , y ) be nd nd normalized device coordinates. Then the window coordinates (x , y ) are w w computed as follows: ( width_____) x = (x + 1) + x w nd ( 2 ) ( height______) y = (y + 1) + y w nd ( 2 ) Viewport width and height are silently clamped to a range that depends on the implementation. To query this range, call ffffggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS. EEEERRRRRRRROOOORRRRSSSS GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if either _w_i_d_t_h or _h_e_i_g_h_t is negative. GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt is executed between the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ffffggggllllEEEEnnnndddd. PPPPaaaaggggeeee 1111 ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ffffggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS ffffggggllllGGGGeeeetttt with argument GGGGLLLL____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT ffffggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS SSSSEEEEEEEE AAAALLLLSSSSOOOO ffffggggllllDDDDeeeepppptttthhhhRRRRaaaannnnggggeeee PPPPaaaaggggeeee 2222